import request from '@/utils/httpRequest'

/**
 * 用户注册
 */
export function register(data) {
  return request({
    url: 'member/auth/register',
    method: 'POST',
    data: data
  })
}

/**
 * 会员登录
 */
export function login(data) {
  return request({
    url: 'member/auth/login',
    method: 'POST',
    data: data
  })
}
/**
 * 会员退出登录
 */
export function logout() {
  return request({
    url: 'member/auth/logout',
    method: 'POST'
  })
}

/**
 * 修改会员信息
 */
export function updateMember(data) {
  return request({
    url: 'member/member/update',
    method: 'post',
    data: data
  })
}

/**
 * 修改密码
 */
export function updatePassword(data) {
  return request({
    url: 'member/member/modifyPassword',
    method: 'post',
    data: data
  })
}

